<?php 
	$this->load->view('header');
	$this->load->view('header_end');
	$this->load->view('banner_menu_top');
	//$this->load->view('modules/mod_banner_center');
?>
<div id="content">
	<div id="left_column">
		<?php
			$this->load->view('modules/mod_new_product');
			$this->load->view('modules/mod_faq');
			$this->load->view('modules/mod_support_online');
			$this->load->view('modules/mod_visitor_counter');
		?>
	</div>
	<div id="main_column">
		<div class="tool_main">
			<h3 class="title_content">Gửi câu hỏi</h3>
		</div>
		<div>
			<div style="border:1px #F3F3F3 solid; margin:10px 0;padding:10px; background:#F4F4F4">
			<form name="frm_contact" id="frm_contact" method="post" action="<?php echo base_url().'index.php/faq/get_data' ?>">
			<table id="tbl_contact">
				<tr>
					<td style="width:150px" class="key">Họ tên: <label class="valid_error">(*)</label></td>
					<td>
						<input class="txt required" type="text" name="txt_name" value="" />
					</td>
				</tr>
				<tr>
					<td class="key">Email: <label class="valid_error">(*)</label></td>
					<td>
						<input class="txt required email" type="text" name="txt_email" value="" />
					</td>
				</tr>
				<tr>
					<td class="key">Điên thoại:  <label class="valid_error">(*)</label></td>
					<td>
						<input class="txt required number" type="text" name="txt_hand_phone" value="" />
					</td>
				</tr>
				<tr>
					<td class="key">Tiêu đề: </td>
					<td>
						<input class="txt" type="text" name="txt_title" value="" style="width:350px" />
					</td>
				</tr>
				<tr>
					<td class="key">Nội dung câu hỏi: <label class="valid_error">(*)</label> 
						<br>Ký tự cho phép:<span id="limitTwo">500</span></p>
					</td>
					<td>
						<textarea class="txt required" name="txt_content" rows="4" maxlength="500" showremain="limitTwo" style="width:350px"></textarea>
	
					</td>
				</tr>
				<tr>
					<td class="key">Mã an toàn: <label class="valid_error">(*)</label> 
					</td>
					<td>
						<input name="txt_capt" type="text" id="txt_capt" value="" style="width:100px;" class="required"/>
					</td>
				</tr>
				<tr>
					<td class="key">&nbsp;</td>
					<td>
						<?php if(isset($img_cpt)) echo $img_cpt['image'];?>
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td>
						<input type="submit" name="btn_submit" value="Submit" class="submit" />
						<input type="hidden" name="hidden_img_cpt" id="hidden_img_cpt"  value = "<?php echo $hidden_cpt; ?>" />
					</td>
				</tr>
			</table>
			</form>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="<?php echo base_url()?>js/maxlen_textarea/behaviour.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/maxlen_textarea/textarea_maxlen.js"></script>
<script>
	$(document).ready(function(){
		$("#frm_contact").validate({
		rules: {
		hidden_img_cpt: "required",
		txt_capt: {
	  equalTo: "#hidden_img_cpt"
		}
		}
	});
	});
</script>
<?php 
	$this->load->view('footer');
?>
